﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IronSuit.DataMap;

namespace IronSuit.DataMap
{
	public partial class CrazyPeople : DataEntity
	{
		public  CrazyPeople()
		{
		}
		public  CrazyPeople(int peopleID)
		{
			this.PeopleID=peopleID;

		}
		public int PeopleID
		{
			get
			{
				return GetFieldValue("PeopleID", int.MinValue);
			}
			set
			{
				SetFieldValue("PeopleID", value);
			}
		}
		public string EMail
		{
			get
			{
				return GetFieldValue("EMail", "");
			}
			set
			{
				SetFieldValue("EMail", value);
			}
		}
		public string NickName
		{
			get
			{
				return GetFieldValue("NickName", "");
			}
			set
			{
				SetFieldValue("NickName", value);
			}
		}
		public string Password
		{
			get
			{
				return GetFieldValue("Password", "");
			}
			set
			{
				SetFieldValue("Password", value);
			}
		}
		public string Mobile
		{
			get
			{
				return GetFieldValue("Mobile", "");
			}
			set
			{
				SetFieldValue("Mobile", value);
			}
		}
		public DateTime Created
		{
			get
			{
				return GetFieldValue("Created", DateTime.MinValue);
			}
			set
			{
				SetFieldValue("Created", value);
			}
		}
		public string UserDB
		{
			get
			{
				return GetFieldValue("UserDB", "");
			}
			set
			{
				SetFieldValue("UserDB", value);
			}
		}

		[NonSerialized]
		CrazyPeopleDBHandler DBHandler;
		protected override DataHandler GetDataHandler()
		{
			if (DBHandler == null)
				DBHandler = new CrazyPeopleDBHandler(this);
			return DBHandler;
		}
	}
	public partial class CrazyPeopleDBHandler : DataHandler
	{
		internal CrazyPeopleDBHandler(CrazyPeople entity)
			: base(entity)
		{
			KeyFieldList.Add("PeopleID");

		}
		public override string TableName
		{
			get { return "Crazy_People"; }
			set { }
		}
	}
}
